package cn.example.vip.mall.goods.feign;

import cn.example.vip.mall.util.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-goods", path = "/category", contextId = "mall-goods-category")
public interface CategoryFeign {
	/**
	 * 根据分类ID查询分类信息
	 */
	@GetMapping("/{id}")
	RespResult findById(@PathVariable("id") Integer id);
}
